import {defHttp} from "/@/utils/http/axios";
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
  list = '/violationStatisticsReport/queryUserReport',
  listSeat = '/violationStatisticsReport/querySeatReport',
  listAll = '/sys/sysDepart/listAll',
  exportXls = '/violationStatisticsReport/exportUserReportXls',
  exportSeatXls = '/violationStatisticsReport/exportSeatReportXls',
}
/**
 * 列表接口
 * @param params
 */
export const list = (params) =>
  defHttp.get({url: Api.list, params});
/**
 * 席位违规列表接口
 * @param params
 */
export const listSeat = (params) =>
  defHttp.get({url: Api.listSeat, params});
/**
 * 导出api
 * @param params
 */
export const getExportUrl = Api.exportXls;
/**
 * 导出席位api
 * @param params
 */
export const getSeatExportUrl = Api.exportSeatXls;
export const listAll = () => defHttp.get({url: Api.listAll});

 
